//
//  SVConfig.h
//  ShortVideo-ccinon
//
//  Created by LIN TONG on 2017/6/19.
//  Copyright © 2017年 LIN TONG. All rights reserved.
//

#ifndef SVConfig_h
#define SVConfig_h

#import "SVCompany.h"
#import "SVQRCode.h"
#import "SVVideo.h"
#import "AppDelegate.h"
#import "JNKeychain.h"
#import "SVCommon.h"

#define __SCREEN_WIDTH__ [UIScreen mainScreen].bounds.size.width
#define __SCREEN_HEIGHT__ [UIScreen mainScreen].bounds.size.height
#define S(x) (__SCREEN_WIDTH__/320.0f)*x
#define UIColorMake(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define Font(x)  [UIFont fontWithName:@"STHeitiSC-Light" size:S(x)]
#define FontM(x)  [UIFont fontWithName:@"STHeitiSC-Medium" size:S(x)]

#define APPDELEGATE ((AppDelegate *)[UIApplication sharedApplication].delegate)

#define HOST [[[NSBundle mainBundle]infoDictionary]objectForKey:@"HOST"] 
#define API(url) [NSString stringWithFormat:@"%@%@",HOST,url]


#define SV_USER_TOKEN                     @"SV_USER_TOKEN"
#define SV_USER_NAME                      @"SV_USER_NAME"
#define SV_USER_PASSWORD                  @"SV_USER_PASSWORD"
#define SV_USER_UUID                      @"SV_USER_UUID"
#endif /* SVConfig_h */
